package
{
	import flash.display.Sprite;

	public class BlasterShot implements IFGPiece
	{
		private var xPos:int;
		private var yPos:int;
		private var xVel:int;
		private var yVel:int;
		private var parentType:int;
		private var s:Sprite;
		private static var TYPE:int = 3;
		private static var HEIGHT:int = 2;
		private static var WIDTH:int = 2;
		private static var COLOR:uint = 0xFF0000;
		
		public function BlasterShot(xPosition:int, yPosition:int, xVelocity:int, yVelocity:int, parentType:int)
		{
			xVel = xVelocity;
			yVel = yVelocity;
			this.parentType = parentType;
			s = new Sprite();
			s.graphics.beginFill(COLOR);
			s.graphics.drawRect(xPosition, yPosition, WIDTH, HEIGHT);
		}
		
		public function destroy():void
		{
			
		}
		
		public function getXVel():int
		{
			return xVel;
		}
		
		public function getYVel():int
		{
			return yVel;
		}
		
		public function getXPos():int
		{
			return s.x;
		}
		
		public function getYPos():int
		{
			return s.y;
		}
		
		public function getHeight():int {
			return HEIGHT;
		}
		
		public function getWidth():int {
			return WIDTH;
		}
		
		public function setXVel(xVelocity:int):void
		{
			xVel = xVelocity;
		}
		
		public function setYVel(yVelocity:int):void
		{
			yVel = yVelocity;
		}
		
		public function getColor():uint {
			return COLOR;
		}
		
		public function getSprite():Sprite {
			return s;
		}
		
		public function move():void
		{
			s.x += xVel;
			s.y += yVel;
		}
		
		public function getType():int
		{
			return TYPE;
		}
		
	}
}